<include file="template:style"/>
<form role="form" id="searchForm" action="{:U('Customize/index')}" method='post' class="form-horizontal">
    <div class="form-group">
		<include file="template:search" results="params" name="name" label="名称" attr='data-rule="length(~50)" maxlength="50"'/>
		<include file="template:time" results="params" name="createtimeStart" label="创建时间开始" attr='data-rule="length(~19)" maxlength="19"'/>
        <include file="template:time" results="params" name="createtimeEnd" label="创建时间结束" attr='data-rule="length(~19)" maxlength="19"'/>
        <include file="template:select" results="params" name="pageSize" list="page" label="每页条数" />

        <div class="col-xs-12">
			<div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 pull-left">
                <div class="row">
                    <include file="template:addBtn" url="{:U('Customize/add')}" height="98%" width="90%"/>
                </div>
            </div>
			<div class="col-xs-4 col-sm-3 col-md-2 col-lg-1">
                <div class="row">
					<span></span>
				</div>
            </div>
            <div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 pull-right">
                <div class="row">
                    <include file="template:searchBtn"/>
                    <include file="template:reloadBtn"/>
                </div>
            </div>
        </div>
    </div>
</form>
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th nowrap="nowrap">ID</th>
            <th nowrap="nowrap">名称</th>
            <th nowrap="nowrap">价格</th>
            <th nowrap="nowrap">定制量</th>
            <th nowrap="nowrap">创建时间</th>
            <th nowrap="nowrap">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
            <tr>
				<td nowrap="nowrap">{$vo.id}</td>
				<td nowrap="nowrap">{$vo.name}</td>
				<td nowrap="nowrap">{$vo.price}</td>
				<td nowrap="nowrap">{$vo.num}</td>
				<td nowrap="nowrap">{$vo.createdtime}</td>
                <td nowrap="nowrap">
                    <!--编辑资料-->
                    <i class="fa fa-edit qg-op-btn qg-tooltip" data-toggle="tooltip" data-placement="top" title="编辑" onclick="modal('{:U(\'Customize/edit\', array(\'id\'=>$vo[\'id\']))}', '编辑')"></i>
                    <!--删除-->
                    <i class="fa fa-trash-o qg-tooltip qg-op-btn" data-toggle="tooltip" data-placement="top" title="删除" onclick="confirmUpdate('{:U(\'Customize/delete\')}','{$vo.id}','确定要删除吗？')"></i>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
{$page}